GetWindow
TheGetWindow
method returns a reference to the window this facet is displayed in.
ODWindow GetWindow ();
- return value
- A reference to the window this facet is displayed in, or
kODNULL
if this facet does not actually appear in any window. For example, a printing facet does not appear in a window.DISCUSSION
If this facet has no window of its own, this method searches recursively for the containing facet's window. Only the root facet of a window has a reference to the window; all its embedded facets then inherit this value.This method increments the reference count of the returned window object. When you have finished using that window object, you should call its
Release
method.SEE ALSO
TheODFrame::AcquireWindow
method (page 305).
Listing 2-28 on page 82 in OpenDoc Cookbook.
"Closing the Dialog Box" on page 235 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help